#ifndef LABELCUSTOM_H
#define LABELCUSTOM_H

#include <QtWidgets/QLabel>

#define EVENT_TYPE_PRESS 0
#define EVENT_TYPE_MOVE 1
#define EVENT_TYPE_RELEASE 2

class LabelCustom : public QLabel
{
    Q_OBJECT

public:
    LabelCustom();

public:
    LabelCustom(QWidget *parent = 0);

private:
    void mousePressEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
    void mouseMoveEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;
    void mouseReleaseEvent(QMouseEvent *ev) Q_DECL_OVERRIDE;

signals:
    void onMouseEvent(int type, QMouseEvent *ev);

};

#endif // LABELCUSTOM_H
